<?php

namespace common\models\freight;

use Yii;

/**
 * This is the model class for table "{{%freight_mode_area}}".
 *
 * @property int $id
 * @property int $template_id 隶属模版ID
 * @property int $mode_id 扩展模板ID
 * @property string $code 地区码
 */
class FreightModeArea extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%freight_mode_area}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['template_id', 'mode_id'], 'integer'],
            [['code'], 'string', 'max' => 6],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'template_id' => '隶属模版ID',
            'mode_id' => '扩展模板ID',
            'code' => '地区码',
        ];
    }

}
